package com.example.myapplication;

import dagger.Module;
import dagger.Provides;

/**
 * Created by ly on 2016/10/10 10:23.
 */
@Module
public class DemoModule {
    @Provides
    Book getBook() {
        User user = new User();
        user.id = 14;
        user.name = "点击";
        return new Book(user,"飘");
    }

    @Provides
    User haveUser() {
        User user = new User();
        user.id = 14;
        user.name = "哈哈";
        return user;
    }
}
